//
//  OASelectBuMenVC.m
//  OA项目
//
//  Created by innofive on 2018/4/27.
//  Copyright © 2018年 inno. All rights reserved.
//

#import "OASelectBuMenVC.h"
#import "OAMyInfoCell.h"
@interface OASelectBuMenVC ()

@end

@implementation OASelectBuMenVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *ar =@[
                   @[@{@"title":@"这里没有我的部门"}],
                   @[@{@"title":@"市场部"},
                     @{@"title":@"销售部"},
                     @{@"title":@"研发部"},
                     @{@"title":@"行政部"}],
                   ];
    
    [self.dataArr addObjectsFromArray:ar];
   
    
}



#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return self.dataArr.count;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return [self.dataArr[section]count];
}

-(void)onSetSubviewSELForCell:(BaseTableViewCell *)cell forTableView:(UITableView *)tableView forIndexPath:(NSIndexPath *)indexPath
{
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
}


-(MCCellInfo *)tableView:(UITableView *)tableView cellForIndexPath:(NSIndexPath *)indexPath IsHeight:(BOOL)isheight
{
  
    return [MCCellInfo configForCellId:cell Class:[OAMyInfo7Cell class] Height:kFitH(50) TableView:tableView];
}

-(MCHFViewInfo *)tableView:(UITableView *)tableView HeaderInSection:(NSInteger)section isBiao:(BOOL)isBiao
{
    if (section==0) {
        return nil;
    }
    return [MCHFViewInfo configForViewId:header Class:[OAMyInfoHeaderView class] Height:kFitH(30) TableView:tableView IsBian:NO];
}

-(id)modelForIndexPath:(NSIndexPath *)indexPath
{
    return self.dataArr[indexPath.section][indexPath.row];
}

-(id)headerViewModelForSection:(NSInteger)section
{
    return @"部分(4)";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
